package com.linkage.educloud.ah.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;


/**
 * 班级空间评论对象
 * Created by Mr'Tang on 2018/9/17.
 */

public class DynamicCommentBean implements Serializable {
    //{"content":"不咋不咋","ocommentlist":[],"user_id":600004038,"c_id":1546,"user_name":"测试七的家长"},
    private String c_id;
    private String user_id;
    private String user_name;
    private String content;

    public static DynamicCommentBean fromJsonObject(JSONObject json) {
        DynamicCommentBean comment = new DynamicCommentBean();
        try {
            comment.setC_id(json.getString("c_id"));
            comment.setUser_id(json.getString("user_id"));
            comment.setUser_name(json.getString("user_name"));
            comment.setContent(json.getString("content"));
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return comment;
    }

    public String getC_id() {
        return c_id;
    }

    public void setC_id(String c_id) {
        this.c_id = c_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}

